<div id="content">
	
			<div id="slideShow">
				<div id="tools">
					Format Accepté: JPEG,GIF,PNG BMP de moins de 2 Mo<br/>
					<?php 
					if (isset($data->success)){
						
						echo "<span class='msgErreur'>Une erreur s'est produite : - ".$data->msgErreur."</span><br/>";
					}
					
					?>
					<form action="index.php?controller=uploadFile&action=uploadImg" method="post"
					enctype="multipart/form-data">
					<label for="file">Sélectionner:</label>
					<input type="file" name="file" id="file" />
					<br />
					<label for="category">Categorie:</label>
					<select name="category" id="category" >
					<?php 
						foreach($data->categories as $category){
							print "<option value=\"$category\">$category</option>";
						}
					?>
					</select> 
					
					
					OU <input type="textarea" name="category2" id="category2" />
					<br />
					<label for="comment">Commentaire:</label>
					<br />
					<textarea name="comment" id="comment" rows="10" cols="50"></textarea>
					<br />
					<input type="submit" name="submit" value="Enregistrer" />
					</form>
			</div>
				<?php require_once("model/BasePdo.php");?>
				<?php require_once("model/image.php");?>		
</div>